<?php
include './inc/PAGE.php';
$p = new PAGE("");

$loginOk = $p->s()->getvar("loginOk");
$username = $p->s()->getvar("username");
$type = $p->s()->getvar("type");
if($loginOk==1  && strlen($username)>0 && $type==LIB) {
    $p = new PAGE("Προσθήκη");
}else {
    header("Location: ./index.php");
}


$edit = $_GET['edit'];

/*
$p->t()->debug($selectbook);
$p->t()->debug($searchterm);
$p->t()->debug($byterm);
$p->t()->debug($wheresql);

*/
?>
<form action="ze_book_add_do.php" method="POST">
    <table border="0" cellpadding="3" class="tableform">
        <tr>
            <td colspan="2" align="center">
                <b>Προσθήκη βιβλίου</b>
            </td>
        </tr>
        <!--tr>
            <td align="right">id</td>
            <td><input type="text" name="" value="" disabled/></td>
        </tr-->
        <tr>
            <td align="right">Κατηγορία</td>
            <td><input type="text" name="register[]" value="" /></td>
        </tr>
        <tr>
            <td align="right">Τίτλος</td>
            <td><input type="text" name="register[]" value="" /></td>
        </tr>
        <tr>
            <td align="right">Συγγραφέας</td>
            <td><input type="text" name="register[]" value="" /></td>
        </tr>
        <tr>
            <td align="right" valign="top">Λεπτομέρειες</td>
            <td><textarea name="register[]" rows="10" cols="20"></textarea></td>
        </tr>
        <tr>
            <td align="right">Τύπος</td>
        <td>
        <select name="register[]">
                    <option>book</option>
                    <option>magazine</option>
                </select>
            </td>
        </tr>
        <tr>
            <td align="right">ISBN</td>
            <td><input type="text" name="register[]" value="" /></td>
        </tr>
        <tr>
            <td align="right">Αντίγραφα</td>
            <td><input type="text" name="register[]" value="" /></td>
        </tr>
        <!--tr>
            <td align="right">Διαθέσιμα<br/>για δανεισμό</td>
            <td><input type="text" name="register[]" value="" /></td>
        </tr-->
        <tr>
            <td align="right"><input type="reset" value="Καθαρισμός" /></td>
            <td><input type="submit" value="Καταχώρηση" /></td>
        </tr>
    </table>
</form>


<?
$p->close();
?>